// @Author: ls <ls-mac>
// @Date:   2020-04-23 14:44:13
// @Last modified by:   ls-mac
// @Last modified time: 2020-05-11 13:32:34

@charset "UTF-8";


@import "_parmer";
@import "_utils";
@import "_fonts";


@import "layout/_layout.scss";
@import "layout/_nav.scss";
@import "layout/_menu.scss";
@import "layout/_tab.scss";






// 遮罩
#mask,
#botMask {
    position: fixed;
    top: $header-height;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    width: 100%;
    height: calc(100% - #{$header-height});
    background: $mask-bg;
    opacity: 0;
    @include nav-menu-ani;
}

#path {
    float: left;
    height: $header-height;
    line-height: $header-height;
    color: #000;

    a {
        text-decoration: none;
        color: #000;
    }

    i {
        @include nav-menu-icon-s;
        margin-right: 6px;
    }

    sup {
        top: 16px;
        margin-left: -26px;
        @include badge-dot;
    }

    small {
        @include nav-menu-small;
    }

    img {
        @include nav-menu-img;
    }

    sub,
    .k-i-arrow-60-up,
    .k-i-arrow-60-down,
    .k-i-arrow-60-left,
    .k-i-arrow-60-right {
        display: none;
    }

    .fa-angle-double-right {
        margin: 0 10px;
        color: $line-color;
    }
}

#contextMenu {
    i {
        @include nav-menu-icon-s;
        margin-right: 6px;
        text-align: center;
    }

    .k-link {
        padding: 8px 30px 8px 20px;
    }
}

/* 主要内容 */
#inProgress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    overflow: visible;

    .animated {
        position: relative;
        overflow: visible;
        animation: inProgress 10s ease-in-out forwards;

        &:after {
            position: absolute;
            top: 0;
            right: 0;
            width: 30px;
            height: 3px;
            border-radius: 100% 5% 5% 100% / 100% 100% 100% 100%;
            transform: scale(1, .6);
            content: "";
        }
    }
}

@keyframes inProgress {
    0% {
        width: 0;
    }

    100% {
        width: 98%;
    }
}

#skeleton {
    margin: 0;
    padding: 1rem;
    list-style: none;

    .media {
        margin-bottom: 2rem;
    }

    figure {
        align-self: center;
        margin-right: 2rem;
        border-radius: $border-radius-round;
        width: 64px;
        height: 64px;
        background-image: linear-gradient(to right, #ddd 0%, #ccc 25%, #ddd 50%, #ccc 75%, #ddd 100%);
        background-size: 200% 100%;
        animation: streamer 2s linear infinite;
    }

    h5 {
        margin-bottom: 1.5rem;
        width: 50%;
        height: 24px;
        background-image: linear-gradient(to right, #ddd 0%, #ccc 25%, #ddd 50%, #ccc 75%, #ddd 100%);
        background-size: 200% 100%;
        animation: streamer 2s linear infinite;

        &+p {
            width: 80%;
        }
    }

    p {
        height: 16px;
        background-image: linear-gradient(to right, #ddd 0%, #ccc 25%, #ddd 50%, #ccc 75%, #ddd 100%);
        background-size: 200% 100%;
        animation: streamer 2s linear infinite;

        &:last-child {
            width: 30%;
        }
    }
}

@keyframes streamer {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: -100% 0;
    }
}

#loading {
    display: none;
    position: fixed;
    z-index: 9999;
    color: $header-bg-color;
    background: $mask-bg;

    &:before,
    &:after {
        border-width: 3px;
        box-shadow: 0 0 3px 3px rgba(255, 255, 255, .3);
    }
}

#template {
    display: none;
}

#toolBox,
#goTop {
    position: fixed;
    right: 32px;
    z-index: 999;
}

#toolBox {
    bottom: 72px;
    width: 48px;
    height: 60px;

    button {
        position: absolute;
        bottom: 0;
        z-index: 6;
        opacity: 0;
        @include nav-menu-ani;
    }

    #tools {
        z-index: 8;
        opacity: .6;
    }

    &:hover {
        button {
            opacity: .6;
        }

        #tools {
            z-index: 4;
            opacity: 0;
        }
    }
}

#goTop {
    display: none;
    bottom: 12px;
    opacity: .6;
}

#toolBox>button,
#goTop {
    border-radius: $border-radius-round;
    margin-top: 12px;
    padding: 0;
    width: 48px;
    height: 48px;
    font-size: 24px;
    line-height: 24px;
    box-shadow: 0 0 8px rgba(0, 0, 0, .6);

    &:hover {
        box-shadow: 0 0 10px rgba(0, 0, 0, .8);
    }

    i {
        cursor: pointer;
    }
}

#botChat {
    overflow: hidden;
    position: fixed;
    top: $header-height;
    right: -300px;
    z-index: 9999;
    width: 300px;
    height: calc(100% - #{$header-height});
    background: $section-bg-color;
    @include nav-menu-ani;

    .k-avatar {
        border: 1px solid $line-color;
    }
}

#botCkb {
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    opacity: 0;

    ~label {
        position: absolute;
    }

    &:checked {
        ~label {
            #botMask {
                z-index: 9998;
                opacity: 1;
            }
        }

        ~#botChat {
            right: 0;
        }
    }
}

#weatherBox {
    .skeleton {
        display: inline-block;
        width: 100%;
        height: $font-size-xxl;
        background-image: linear-gradient(to right, #ddd 0%, #ccc 25%, #ddd 50%, #ccc 75%, #ddd 100%);
        background-size: 200% 100%;
        animation: streamer 2s linear infinite;
        vertical-align: middle;
    }

    .skeleton-round {
        border-radius: $border-radius-round;
        width: 100px;
        height: 100px;
    }

    .card-header {
        font-size: $font-size-m;
        text-align: center;

        .fas {
            margin-right: .5rem;
            font-size: $font-size-xxl;
            vertical-align: middle;
        }

        .flag-icon {
            margin-left: .5rem;
            font-size: $font-size-xxl;
            vertical-align: top;
        }

        .loc {
            display: inline-block;
            min-width: 60%;
            height: $font-size-xxl;
            vertical-align: middle;
        }
    }

    .card-body {
        padding-bottom: .75rem;

        .row {
            .skeleton {
                width: 60%;
            }

            .col-6 {
                margin-bottom: .5rem;

                .wi {
                    margin-right: .5rem;
                    width: 20px;
                    text-align: center;
                }
            }

            .col-6:last-child {
                padding-left: 0;
            }
        }

        time {
            display: block;
            margin-bottom: .5rem;
            font-size: $font-size-s;
            text-align: center;
            color: #999;
        }

        .tmp {
            font-family: arial, sans-serif;
            font-size: 6rem;
            font-weight: 400;
            line-height: 1em;
        }

        .wi-celsius {
            font-size: 4rem;
        }

        .cond-txt {
            align-self: flex-end;
            margin-left: -2rem;
            margin-bottom: .6rem;
            min-width: 2em;
            font-size: 1.25rem;
            font-weight: 300;
        }

        .cond-code {
            margin-left: auto;
            font-size: 5rem;
            line-height: 1.2em;
        }

        .air {
            margin-bottom: .8rem;
            text-align: center;

            .badge {
                margin-left: .5rem;
                font-weight: normal;
            }
        }

        #weatherChart {
            margin-left: -15px;
            margin-right: -15px;

            .skeleton {
                height: 100px;
            }
        }
    }

    .card-footer {
        font-size: $font-size-s;

        .skeleton {
            height: 80px;
        }

        .col-4 {
            display: flex;
            flex-direction: column;
            text-align: center;

            .icon {
                padding: 1rem 0;
            }

            i.theme-m {
                margin-right: .25rem;
                max-width: 36px;
                font-size: 30px;
            }

            i.theme-s {
                margin-left: .25rem;
                max-width: 24px;
                font-size: 20px;
            }
        }
    }
}

#lunarBox {
    .card {
        border: 0;

        .row {
            &>div {
                height: 408px;
            }

            &>div:first-child {
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                text-align: center;
                font-size: 1.5rem;

                &>div {
                    margin-top: .5rem;
                    margin-bottom: .5rem;

                    span {
                        display: inline-block;
                        margin: 0 .5rem;
                    }
                }

                .day {
                    border-radius: 10px;
                    padding: 0 1rem .5rem 1rem;
                    font-family: verdana, sans-serif;
                    font-size: 10rem;
                    font-weight: 400;
                    line-height: 1em;
                }

                .week,
                .moon-phase {
                    i {
                        margin-right: 8px;
                        font-size: 1.6rem;
                        vertical-align: bottom;
                    }
                }

                .week,
                .moon-phase,
                .festival,
                .lunar-year {
                    font-size: 1.2rem;
                }
            }
        }
    }

    .k-calendar,
    .k-calendar-view,
    .k-calendar-view>table,
    .k-calendar-view .k-link {
        width: 100%;
    }

    .k-calendar {
        height: 408px;

        .k-calendar-view {
            height: 24em;

            &>table,
            .k-link {
                position: relative;
                height: 100%;
            }

            i.wi {
                position: absolute;
                top: 6px;
                right: 12px;
            }

            .festival {
                border-color: #f35800;
                background-color: #fff;
                color: #f35800;
            }
        }
    }
}

#noteBox {
    position: relative;
    overflow-x: hidden;

    .note-tools {
        padding-top: 10px;
        text-align: center;

        &:first-child {
            display: flex;
            justify-content: space-between;
            padding-bottom: 10px;

            .k-textbox {
                padding-left: 0;
                width: 78%;

                i {
                    margin: 2px 6px;
                    width: 16px;
                    height: 16px;
                    font-size: 16px;
                    line-height: 16px;
                }
            }

            .k-order-button,
            .k-clear-button {
                display: inline-block;
                border: 1px solid $line-color;
                border-radius: $border-radius;
                width: 30px;
                height: 30px;
                line-height: 30px;
            }

            .k-order-button:nth-child(odd) {
                display: none;
            }
        }

        .k-button {
            border-radius: $border-radius-round;
            width: 48px;
            height: 48px;

            .k-icon {
                font-size: 30px;
            }
        }
    }

    #noteListView {
        margin-right: -35px;
        border: 0;
        padding-right: 18px;

        .blank {
            display: flex;
            justify-content: center;
            align-items: center;
            position: absolute;
            padding-right: 18px;
            width: 100%;
            height: 100%;
        }

        .alert {
            border: 1px solid transparent;
            border-radius: 8px;
            padding: .5rem .75rem 0 .75rem;

            p {
                margin: 0;
            }

            hr {
                margin-top: .5rem;
                margin-bottom: .5rem;
            }

            time {
                display: flex;
                justify-content: space-between;

                small {
                    display: inline-block;
                    height: 24px;
                    opacity: .5;
                }

                .k-button {
                    margin-top: -6px;
                    margin-left: 6px;
                    border-radius: $border-radius-round;
                    padding: 0;
                    width: 24px;
                    height: 24px;
                    line-height: 24px;
                }
            }
        }

        .alert-primary {
            border-color: #b8daff;
        }

        .alert-secondary {
            border-color: #d6d8db;
        }

        .alert-success {
            border-color: #c3e6cb;
        }

        .alert-danger {
            border-color: #f5c6cb;
        }

        .alert-warning {
            border-color: #ffeeba;
        }

        .alert-info {
            border-color: #bee5eb;
        }
    }
}

/* 手机端适配 */
@media only screen and (max-width: 767px) {
    #login {
        #live2d-widget {
            right: -20px !important;
            bottom: -60px !important;
            width: 100px !important;
            height: 200px !important;

            .live2d-widget-dialog-container {
                right: 80px;
                bottom: 33%;
            }

            #live2dcanvas {
                width: 100px !important;
                height: 200px !important;
            }
        }
    }

    #navCkb:checked~#aside #navPanelBar,
    #header h1,
    #header label[for="menuCkb"],
    #menuV {
        display: block;
    }

    #navCkb:checked~#aside #navMenu,
    #navCkb:checked~#main #header h1,
    #menuH,
    #path span {
        display: none;
    }

    #aside {
        left: -$aside-nav-width;
    }

    #main {
        left: 0;
        width: 100%;
    }

    #navCkb {
        &:checked {
            ~label {
                #mask {
                    z-index: 9998;
                    opacity: 1;
                }
            }

            ~#aside {
                left: 0;
                width: $aside-nav-width;

                h1 {
                    background-image: url("../img/logo.png");
                }

                #nav {
                    overflow-x: hidden;
                    overflow-y: auto;
                    width: $aside-nav-width + 6px;
                }
            }

            ~#main {
                left: 0;
                width: 100%;

                #header {
                    .fa-bars {
                        margin-left: $aside-nav-width + 15px;
                    }
                }
            }
        }
    }

    #footer {
        padding-top: 6px;
    }

    #locking {
        background-size: auto 100%;
    }

    #toolBox,
    #goTop {
        right: 16px;
    }

    #toolBox {
        bottom: 48px;
        width: 32px;
        height: 40px;
    }

    #goTop {
        bottom: 8px;
    }

    #toolBox>button,
    #goTop {
        margin-top: 8px;
        width: 32px;
        height: 32px;
        font-size: 16px;
        line-height: 16px;
    }

    #lunarBox {
        .card {
            .row {
                &>div:first-child {
                    flex-direction: row;
                    flex-wrap: wrap;
                    height: 80px;
                    font-size: 1rem;

                    &>div {
                        margin: 0 .5rem;
                    }

                    .day {
                        border-radius: $border-radius;
                        padding: .1rem .5rem;
                        font-size: 1.5rem;
                    }

                    .week,
                    .moon-phase {
                        i {
                            font-size: 1.3rem;
                        }
                    }

                    .week,
                    .moon-phase,
                    .festival,
                    .lunar-year {
                        font-size: 1rem;
                    }
                }
            }
        }

        .k-calendar {
            .k-calendar-view {
                i.wi {
                    top: 4px;
                    right: 2px;
                }
            }
        }
    }

    #noteBox {
        #noteListView {
            margin-right: -15px;
            padding-right: 16px;
        }
    }
}

/* Bootstrap 细节完善 ------------------------------ */
.k-ie10 .hide,
.k-ie11 .hide,
.hide {
    display: none;
}

[tabindex="-1"]:focus {
    outline: 0;
}

/* 尺寸 */
.w-5 {
    width: 5% !important;
}

.w-10 {
    width: 10% !important;
}

.w-15 {
    width: 15% !important;
}

.w-20 {
    width: 20% !important;
}

.w-30 {
    width: 33.33% !important;
}

.w-33 {
    width: 33% !important;
}

.w-40 {
    width: 40% !important;
}

.w-60 {
    width: 60% !important;
}

.w-70 {
    width: 70% !important;
}

.w-80 {
    width: 80% !important;
}

.w-90 {
    width: 90% !important;
}

.h-5 {
    height: 5% !important;
}

.h-10 {
    height: 10% !important;
}

.h-15 {
    height: 15% !important;
}

.h-20 {
    height: 20% !important;
}

.h-30 {
    height: 33.33% !important;
}

.h-33 {
    height: 33% !important;
}

.h-40 {
    height: 40% !important;
}

.h-60 {
    height: 60% !important;
}

.h-70 {
    height: 70% !important;
}

.h-80 {
    height: 80% !important;
}

.h-90 {
    height: 90% !important;
}

/* Kendo UI 细节完善 ------------------------------ */

/* 通知框 */
.k-notification-wrap {
    align-items: center;
    font-size: $font-size-m;
    white-space: nowrap;
}

/* 对话框 模态框 */
.k-dialog,
.k-window {

    .k-dialog-titlebar,
    .k-window-titlebar {
        background-clip: unset;
    }

    .k-dialog-title,
    .k-window-title {
        align-items: center;

        img {
            margin-right: 10px;
            width: 20px;
            height: 20px;
        }
    }

    .dialog-box {
        padding: 40px;

        dt {
            i.fas {
                margin-right: 10px;
                font-size: 30px;
                vertical-align: middle;
            }
        }
    }

    .k-dialog-buttongroup {
        .k-button {
            background-clip: unset !important;
        }
    }

    .k-window-buttongroup {
        margin-bottom: -20px;
        padding-top: 24px;
        text-align: center;

        .k-button {
            margin: 0 10px;
        }
    }

    .pic-box,
    .window-map {
        padding: 0;
    }
}

/* 按钮 */
.k-button-lg {
    padding: 8px 30px;
    height: 36px;
}

.k-button-group {
    .k-button {
        background-clip: unset;
    }
}



/* 自定义 Kendo UI 组件 ------------------------------ */

/* 步骤条 */
.k-step {
    border-width: 1px;
    border-style: solid;

    .k-tabstrip-items {
        justify-content: space-between;
        margin: 0 auto;
        border: none;
        padding: 20px 0;
        width: 72%;

        &:after {
            position: absolute;
            top: 38%;
            left: 5%;
            z-index: 1;
            width: 90%;
            height: 1px;
            content: "";
        }

        .k-item {
            position: relative;
            z-index: 9;

            .k-link {
                flex-direction: column;

                em {
                    display: block;
                    padding: 0 12px;
                    font-style: normal;

                    strong {
                        display: inline-block;
                        margin-bottom: 6px;
                        border-width: 1px;
                        border-style: solid;
                        border-radius: $border-radius-round;
                        width: 28px;
                        height: 28px;
                        line-height: 28px;
                        text-align: center;
                    }
                }
            }
        }

        .k-item.k-state-active {
            z-index: 9;
            border: none;
            background: none;
        }

        .k-item.k-state-disabled {
            opacity: 1;
        }
    }

    .k-content {
        margin: 0 20px 20px 20px;
        border-width: 1px;
        border-style: solid;
        padding: 20px 20px 10px 20px;

        .k-step-btns {
            margin-top: 20px;
            text-align: center;

            button {
                margin: 0 10px;
            }
        }
    }
}

@media only screen and (max-width: 767px) {
    .k-step {
        .k-tabstrip-items {
            width: 96%;
        }
    }
}

/* 时间轴 */
.k-timeaxis {
    position: relative;
    list-style: none;

    &:before,
    &:after {
        position: absolute;
        left: 15px;
        width: 0;
        content: '';
    }

    &:before {
        bottom: -1rem;
        z-index: 2;
        height: 2rem;
    }

    &:after {
        top: 10px;
        z-index: 1;
        height: 100%;
    }

    >li {
        position: relative;

        &:before,
        &:after {
            position: absolute;
            z-index: 10;
            border-radius: $border-radius-round;
            content: '';
        }

        &:before {
            top: 5px;
            left: -30px;
            width: 11px;
            height: 11px;
        }

        &:after {
            top: 7px;
            left: -28px;
            width: 7px;
            height: 7px;
        }

        time {
            margin-right: 10px;
        }

        p {
            display: inline-block;

            small {
                margin-left: 10px;
            }
        }
    }
}

/* 自定义细节 ------------------------------ */
.w-9 {
    width: 9% !important;
}

.ml-p1 {
    margin-left: 1%;
}

.w-4 {
    width: 4% !important;
}

.w-48 {
    width: 48% !important;
}

.dot-color {
    display: inline-block;
    border: 1px solid;
    border-radius: $border-radius-round;
    width: 10px;
    height: 10px;
}

.mars {
    color: rgb(82, 177, 255);
}

.venus {
    color: rgb(255, 150, 192);
}